<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/8/27 0027
  Time: 15:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../../js/jquery-3.4.1.min.js"></script>
    <script>
        $(function () {
            $("#kkk").on("click", function () {
                $.ajax({
                    url: "/aa",
                    data: {name: "xiaoming", age: "18"},
                    dataType: "json",
                    success: function (res) {
                        $("#kkk").text(res.name + ";" + res.age);
                    },
                    error: function () {
                        alert("出错！")
                    }
                });
            });
        });
    </script>
</head>
<body>
    <div id="kkk">点我</div>
</body>
</html>
